const columns = [
    {
        prop: 'id',
        label: '任务编号'
    },
    {
        prop: 'name',
        label: '任务名称',
        width: 250
    },
    {
        prop: 'startTime',
        label: '计划期限(开始)',
        width: 180
    },
    {
        prop: 'endTime',
        label: '计划期限(结束)',
        width: 180
    },
    {
        prop: 'creatorName',
        label: '创建人'
    },
    {
        prop: 'enabled',
        label: '启用'
    },
    {
        label: '操作',
        width: 200,
        operations: [
            {
                prop: 'edit',
                label: '编辑'
            },
            {
                prop: 'delete',
                label: '删除'
            }
        ]
    }
]

const options = [
    {
        value: 'batchrefresh',
        label: '刷新'
    },
    {
        value: 'batchdelete',
        label: '批量删除'
    }
]

const enableOptions = [
    {
        id: true,
        name: '是'
    },
    {
        id: false,
        name: '否'
    }
]

const multistageProps = {
    label: 'name',
    children: 'subClasses'
}

const multistageColumns = [
    {
        label: '名称',
        prop: 'name',
        align: 'center',
        width: '380'
    }
]

const addTaskFormItems = [
    {
        label: '任务名称:',
        prop: 'name',
        name: 'input',
        validation: true
    },
    {
        label: '开始时间',
        prop: 'startTime',
        name: 'startime',
        validation: true
    },
    {
        label: '结束时间',
        prop: 'endTime',
        name: 'endtime',
        validation: true
    },
    {
        label: '启用',
        prop: 'enabled',
        name: 'checkbox'
    },
    {
        label: '业务模块',
        prop: 'businessTemplate',
        type: 'textarea',
        name: 'popup',
        placeholder: '请选择',
        validation: true
    },
    {
        label: '任务简介',
        prop: 'comment',
        type: 'textarea',
        name: 'input'
    }
]
export default {
    columns,
    options,
    enableOptions,
    multistageProps,
    multistageColumns,
    addTaskFormItems
}
